﻿using WH.Model.Enums;

namespace WH.Contracts.Systems.Users
{
    /// <summary>
    /// 用户
    /// </summary>
    public class UserOutputByPageDto
    {
        /// <summary>
        /// 主键fid
        /// </summary>
        public string? Id { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        public string? Account { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 编号（工号）
        /// </summary>
        public string? Code { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string? PhoneNumber { get; set; }
        /// <summary>
        /// 机构ID
        /// </summary>
        public string? OrganizationId { get; set; }

        /// <summary>
        /// 机构名称
        /// </summary>
        public string? OrganizationName { get; set; }

        /// <summary>
        /// 机构ID
        /// </summary>
        public string? FullOrganizationId { get; set; }

        /// <summary>
        /// 机构名称
        /// </summary>
        public string? FullOrganizationName { get; set; }

        /// <summary>
        /// 状态（0停用 1正常）
        /// </summary>
        public bool IsEnable { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        public string? CreatedBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 组织主键部门 读取sys_organize表中的fid
        /// </summary>
        public string? DepartmentId { get; set; }

        /// <summary>
        /// 组织主键部门 读取sys_organize表中的fid
        /// </summary>
        public string? DepartmentName { get; set; }

        /// <summary>
        /// 角色主键  读取sys_role表中category=1的fid
        /// </summary>
        public string? RoleId { get; set; }
        /// <summary>
        /// 角色主键  读取sys_role表中category=1的fid
        /// </summary>
        public string? RoleName { get; set; }

        /// <summary>
        /// 角色描述
        /// </summary>
        public string? RoleDescription { get; set; }

        ///// <summary>
        ///// 岗位主键  读取sys_role表中category=2的fid
        ///// </summary>
        //public string? DutyId { get; set; }
        ///// <summary>
        ///// 岗位主键  读取sys_role表中category=2的fid
        ///// </summary>
        //public string? DutyName { get; set; }
        ///// <summary>
        ///// 用户登录类型
        ///// </summary>
        public UserAccessTypeEnum? AccessType { get; set; }
        /// <summary>
        /// 访问类型 1：系统用户   2：对接用户
        /// </summary>
        public string? AccessTypeStr { get; set; }

        /// <summary>
        /// 用户类型
        /// </summary>
        public string? UserTypeCode { get; set; }
        /// <summary>
        /// 用户类型
        /// </summary>
        /// 
        public string? UserTypeCodeString { get; set; }
        /// <summary>
        /// 生日
        /// </summary>
        public DateTime? Birthday { get; set; }

        /// <summary>
        /// 微信
        /// </summary>
        /// 
        public string? WeiXin { get; set; }
    }
}
